<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use DB;
class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        $data = DB::table('config')->first();
        $webConfig = [];
        foreach($data as $k=>$v){
            $webConfig[$k]=$v;
        }

        view()->share('webConfig',$webConfig);
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
